From b65be0f86d50d284a879cf7a934d402d99db0cb5 Mon Sep 17 00:00:00 2001 From: Felix Crux Date: Sun, 13 Dec 2015 19:19:30 -0500 Subject: [PATCH] Update zsh completion to include new 'install' command --- src/etc/_cargo | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/etc/_cargo b/src/etc/_cargo index f48e47857..11750483c 100644 --- a/src/etc/_cargo +++ b/src/etc/_cargo @@ -117,6 +117,27 @@ case $state in '*: :_cargo_cmds' \ ;; + install) + _arguments \ + '--bin=[only install the specified binary]' \ + '--branch=[branch to use when installing from git]' \ + '--color=:colorization option:(auto always never)' \ + '--debug[build in debug mode instead of release mode]' \ + '--example[install the specified example instead of binaries]' \ + '--features=[space separated feature list]' \ + '--git=[URL from which to install the crate]' \ + '(-h, --help)'{-h,--help}'[show help message]' \ + '(-j, --jobs)'{-j,--jobs}'[number of jobs to run in parallel]' \ + '--no-default-features[do not build the default features]' \ + '--path=[local filesystem path to crate to install]' \ + '(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \ + '--rev=[specific commit to use when installing from git]' \ + '--root=[directory to install packages into]' \ + '--tag=[tag to use when installing from git]' \ + '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ + '--vers=[version to install from crates.io]' \ + ;; + locate-project) _arguments \ '(-h, --help)'{-h,--help}'[show help message]' \ @@ -272,6 +293,7 @@ local -a commands;commands=( 'generate-lockfile:create lockfile' 'git-checkout:git checkout' 'help:get help for commands' +'install:install a Rust binary' 'locate-project:print "Cargo.toml" location' 'login:login to remote server' 'new:create a new project' -- 2.30.2